<div class="user-approve ">
<div class="user-approve-atas">Users who have been approved
		<div class="trans-log-page"><?php
		echo ! empty($pagination) ? '' . $pagination . '' : '';
		?>
		</div>

</div>
<div class="user-approve-tengah">
	<div class="user-approve-tengah-box">
	<?php
	echo ! empty($success) ? '<p class="message">' . $success . '</p>': '';
	
	//echo ! empty($table) ? $table : '';
	?>
    <table cellpadding="0" cellspacing="0" border="0" id="table" class="sortable"   width="760">
	<thead>
	<tr>
		<th class="nosort"><h3>No</h3></th><th><h3>Name</h3></th><th><h3>Email</h3></th><th><h3>Dept Name</h3></th><th><h3>Status</h3></th><th><h3>Action</h3></th>
    </tr>
	</thead>
<tbody>
	<?php
		$w1 ="#bee1ff";
		$w2 ="#90ccff";
		$warna = $w1;
		$no =0;
		foreach($as->result() as $as) {
			if($warna==$w1) {
				$warna = $w2;
			} else {
				$warna = $w1;
			}
		$no ++;
	?>
	<tr bgcolor="<?php echo $warna;?>">
		<td><?php echo ++$i;?></td>
        <td><?php echo $as->name;?></td>
        <td><?php echo $as->email;?></td>
        <td><?php echo $as->dept_name;?></td>
        <td><?php echo $stat;?></td>
        <td> <?php echo anchor('userAprove/appRoveUser/update_aktif/'.$as->user_id,'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ',array('class'=>'nonaktif','onclick'=>"return confirm('Anda yakin akan mengaktifkan user ini ..?')"));?></td>
	</tr>
    
	<?php } ?>
    </tbody>
    </table>
    <script type="text/javascript" src="<?php echo base_url();?>js/sorter.js"></script>
<script type="text/javascript">
	var sorter = new TINY.table.sorter("sorter");
		sorter.head="heads";
		sorter.asc = "asc";
		sorter.desc = "desc";
		sorter.even = "evenrow";
		sorter.odd = "oddrow";
		sorter.evensel ="evenselected";
		sorter.oddsel ="oddselected";
		sorter.paginate= true;
		sorter.currentid ="currentpage";
		sorter.limited ="pagelimit";
		sorter.init("table",1);
</script>
	</div>
</div>
<div class="user-approve-bawah ">
	<div class="trans-log-page2"><?php
	echo ! empty($pagination) ? '' . $pagination . '' : '';
	?></div>
</div>
</div>

<div class="user-approve ">
<div class="user-approve-atas">Users Aktif
		<div class="trans-log-page"><?php
		echo ! empty($pagination2) ? '' . $pagination2 . '' : '';
		?>
		</div>
</div>
<div class="user-approve-tengah">
	<div class="user-approve-tengah-box">
<table cellpadding="0" cellspacing="0" border="0" id="table" class="sortable"   width="760">
	<thead>
	<tr>
		<th class="nosort"><h3>No</h3></th><th><h3>Name</h3></th><th><h3>Email</h3></th><th><h3>Dept Name</h3></th><th><h3>Status</h3></th><th><h3>Action</h3></th>
    </tr>
	</thead>
<tbody>
<?php
$w1 ="#bee1ff";
$w2 ="#90ccff";
$warna = $w1;
$i=1;
$no=0;
foreach($show->result() as $x) {
	if($warna==$w1) {
		$warna = $w2;
		} else {
			$warna = $w1;
			}
$no++;
?>
<tr bgcolor="<?php echo $warna;?>">
	<td><?php echo $no;?></td>
                          <td><?php echo $x->name;?></td>
                          <td><?php echo $x->email;?></td>
						  <td><?php echo $x->dept_name;?></td>
						  <td>Aktif</td>
					 	  <td><?php echo anchor('userAprove/appRoveUser/update_non/'.$x->user_id,'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ',array('class'=>'aktif','onclick'=>"return confirm('Anda yakin akan menon Aktifkan user ini ..?')"));?></td>
	</tr>
<?php } ?>
</tbody>

</table>
<script type="text/javascript" src="<?php echo base_url();?>js/sorter.js"></script>
<script type="text/javascript">
	var sorter = new TINY.table.sorter("sorter");
		sorter.head="heads";
		sorter.asc = "asc";
		sorter.desc = "desc";
		sorter.even = "evenrow";
		sorter.odd = "oddrow";
		sorter.evensel ="evenselected";
		sorter.oddsel ="oddselected";
		sorter.paginate= true;
		sorter.currentid ="currentpage";
		sorter.limited ="pagelimit";
		sorter.init("table",1);
</script>
</div>
</div>
<div class="user-approve-bawah "></div>
</div>
